{% extends "base.html" %}

{% macro index() -%}
<ul>
<li><a href="{{ url_for('.EC_toplevel')  }}  ">Elliptic Curves over Q</a>
<li><a href="{{ url_for('.render_maass_form')  }}  ">Maass cusp forms</a></li>
<li><a href="{{ url_for('.render_Lfunction') }}">L-functions</a> </li>
<li><a href="{{ url_for('.ModularForm_GSp4_Q_top_level')  }}  ">Siegel modular forms</a> </li>
<li><a href="{{ url_for('.render_classical_modular_forms')  }}  ">Classical modular forms</a></li>
<li><a href="{{ url_for('.number_field_render_webpage')  }}  ">Number Fields</a></li>
<li><a href="{{ url_for('.hilbert_modular_form_render_webpage')  }}">Hilbert Modular Forms</a></li>
<li><a href="{{ url_for('.LfunctionDB.query', zerolowerbound=1.1, zeroupperbound=2.1) }} ">First zero search example</a></li>
</ul>
{%- endmacro %}

{% block body %}

<div id="header">
    <div class="logo"><a href="/"><img src="{{ url_for('.static', filename='images/lmdb-logo.png') }}" /></a></div>
    <div class="right">
      <div class="bread">
        <a href="/">Top</a>
        {% if bread %}
          {% for b in bread %}
            &rarr; <a href="{{ b[1] }}">{{ b[0] }}</a>
          {% endfor %}
        {% else %}
          &rarr; Bread &rarr; Crumb &rarr; Hierarchy
        {% endif %}
      </div>
      <div class="title"> 
        {% if title %}{{ title }}
        {% else %}TITLE OF PAGE MISSING \( \chi^2 \) even more text and tex \( \frac{1}{1+x+x^2} \) and even more ...
        {% endif %}
      </div>
    </div>
</div>

{% block sidebar %} 
<div id="sidebar">

 {% macro entry(title, entries) -%}
   {% if entries %}
    <h2>{{ title }}</h2>
    <ul class="subnav">
        {% for text,url in entries %}
           <li><a href="{{ url }}">{{ text }}</a></li>
        {% endfor %}
    </ul>
   {% endif %}
 {%- endmacro %}

 <h2 id="top">Navigation</h2>
 {{ index() }}

 {{ entry("Downloads", info.downloads) }}
 {{ entry("Learn more about", info.learnmore) }}
 {{ entry("Friends", info.friends) }}

 {% if sidebar %}
  {% for topic, content in sidebar %}
    {{ entry(topic, content) }}
  {% endfor %}
 {% endif %}

</div>
{% endblock sidebar %}


<div id="main">
  <div id="Content">
    {% if (citation or properties) %}
      <div id="properties">
        {% if citation %}
         <h1>Citation</h1>
         {{ citation }}
        {% endif %} 
        {% if properties %}
         <h1>Properties</h1>
         {% for p in properties %}{{ p|safe }}{% endfor %}
        {% endif %}
      </div>
    {% endif %}

    {% block content %}
    There is nothing here. This is just a template.
    {% endblock content %}
  </div>
</div>

<div id="footer">
    {% if credit %}
      &copy; Data computed by {{ credit|safe }}.<br />
    {% endif %}
    
    {% if support %}
      {{ support|safe }}<br/>
    {% else %}
       The creation of this website was supported by the NSF, AIM ...<br />
    {% endif %}
    Number Theory, the Queen of Mathematics!
</div>

{% endblock body %}
